package cn.simple.manager.Repository;

import cn.simple.manager.todo.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository

@Transactional( readOnly = true)
public interface ceshiResponsitory  extends JpaRepository<Account, String> {
    @Query("Select new Account(id,realName) from Account ")
    List<Account> findDiyAccount();
}
